package controlFlowGraph;

public class CFGEdge {
	
	private CFGNode fromNode;
	
	private CFGNode toNode;
	
	private CFGLabel label;
	
	public CFGEdge(CFGNode from, CFGNode to, CFGLabel lab) {
		this.fromNode = from;
		this.toNode = to;
		this.label = lab;
	}

	public CFGNode getFromNode() {
		return fromNode;
	}

	public CFGNode getToNode() {
		return toNode;
	}

	public CFGLabel getLabel() {
		return label;
	}

	public void setFromNode(CFGNode tmpNode) {
		this.fromNode = tmpNode;		
	}

	public void setLabel(CFGLabel lab) {
		this.label = lab;
	}
	
}
